Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
- All Implemented Interfaces:
IPCData,OSPFPacket,Pdu,Signal
- Direct Known Subclasses:
OSPFDDPacketImpl,OSPFHelloPacketImpl,OSPFLSAckPacketImpl,OSPFLSRPacketImpl,OSPFLSUPacketImpl,OSPFv3HelloPacketImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected Shortprotected Shortprotected Shortprotected IPAddressprotected intprotected Byteprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidvoidsetAuthenticationType(Short authenticationType) voidsetCheckSum(Short checkSum) voidvoidsetRouterId(IPAddress routerId) voidsetSequence(int sequence) voidsetTypeCode(Byte typeCode) voidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
version
-
typeCode
-
length
-
routerId
-
areaId
-
checkSum
-
authenticationType
-
sequence
protected int sequence
-
-
Constructor Details
-
OSPFPacketImpl
public OSPFPacketImpl()
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceOSPFPacket- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfaceOSPFPacket- Parameters:
version- Takes in a parameter of version
-
getTypeCode
- Specified by:
getTypeCodein interfaceOSPFPacket- Returns:
- Byte Returns a Byte
-
setTypeCode
- Specified by:
setTypeCodein interfaceOSPFPacket- Parameters:
typeCode- Takes in a parameter of typeCode
-
getLength
- Specified by:
getLengthin interfaceOSPFPacket- Returns:
- Short Returns a Short
-
setLength
- Specified by:
setLengthin interfaceOSPFPacket- Parameters:
length- Takes in a parameter of length
-
getRouterId
- Specified by:
getRouterIdin interfaceOSPFPacket- Returns:
- IPAddress Returns a IPAddress
-
setRouterId
- Specified by:
setRouterIdin interfaceOSPFPacket- Parameters:
routerId- Takes in a parameter of routerId
-
getAreaId
- Specified by:
getAreaIdin interfaceOSPFPacket- Returns:
- IPAddress Returns a IPAddress
-
setAreaId
- Specified by:
setAreaIdin interfaceOSPFPacket- Parameters:
areaId- Takes in a parameter of areaId
-
getCheckSum
- Specified by:
getCheckSumin interfaceOSPFPacket- Returns:
- Short Returns a Short
-
setCheckSum
- Specified by:
setCheckSumin interfaceOSPFPacket- Parameters:
checkSum- Takes in a parameter of checkSum
-
getAuthenticationType
- Specified by:
getAuthenticationTypein interfaceOSPFPacket- Returns:
- Short Returns a Short
-
setAuthenticationType
- Specified by:
setAuthenticationTypein interfaceOSPFPacket- Parameters:
authenticationType- Takes in a parameter of authenticationType
-
getSequence
public int getSequence()- Specified by:
getSequencein interfaceOSPFPacket- Returns:
- int Returns a int
-
setSequence
public void setSequence(int sequence) - Specified by:
setSequencein interfaceOSPFPacket- Parameters:
sequence- Takes in a parameter of sequence
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-